package com.yiding.sys.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author War horse imwarhorse@aliyun.com
 * Date: 2020/8/13
 * Description: MyBatis Plus配置
 */

@Configuration
@MapperScan({"com.yiding.sys.dao"})
public class MyBatisPlusConfig {

	/**
	 * 分页插件
	 *
	 * @return
	 */
	@Bean
	public PaginationInterceptor paginationInterceptor() {
		return new PaginationInterceptor();
	}

}
